<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
    </head>
    <body>
        <script src="../js/vue.js"></script>
        <script>
            //对象的字面量
            const name = 'jack'
            const age = '11'

            //1. 属性的增强写法
            const obj1 = {
                name: 'name',
                age: 'age'
            }
            const obj1Enhance = {
                name,
                age
            }
            
            //2. 函数的增强写法
            const obj2 = {
                run: function() {

                },
                eat: function() {

                }
            }
            const obj2Enhance = {
                run() {

                },
                eat() {
                    
                }
            }
        </script>
    </body>
</html>